package com.liuyh.demo.order.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "compute-server",path = "/compute")
public interface AddClient {

    @RequestMapping(method = RequestMethod.POST,value = "/add",consumes = "application/json")
    public int add(@RequestParam(value = "a") int a,@RequestParam(value = "b") int b);

}
